# encoding=utf8
'''
Created on Dec 28, 2015

@author: jingyang <jingyang@smalltreemedia.com>
'''
from django import forms

from sdk_info.models import SDKInfo, SDKVersion
from core.widgets import CustomTextarea


class SDKInfoAdminForm(forms.ModelForm):
    class Meta:
        model = SDKInfo
        widgets = {'desc': CustomTextarea}


class SDKVersionAdminFrom(forms.ModelForm):
    class Meta:
        model = SDKVersion
        widgets = {'desc': CustomTextarea(attrs={'style': '''overflow: hidden;
            word-wrap: break-word; resize: horizontal; width: 400px; height: 46px;'''})}
